import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import echarts from 'echarts'
import dataV from '@jiaminghi/data-view'


import '@/assets/styles/index.scss'
import '@/assets/iconfont/iconfont.css'


Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
Vue.use(dataV)
router.beforeEach((to, from, next) => {
	if (to.meta.title) {
	  document.title = to.meta.title;
	}
	next();
})

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
